package com.cnap.multiclouldmgmt.model.alarm;



import java.time.LocalDateTime;


/**
 * ------
 * 告警规则数据库实体类
 *
 * @author xc
 * ----
 * @version 1.0
 * @data 202211
 * @describe
 **/
public class RulePO {
    private String id;
    /**
     * 告警规则名称
     */
    private String ruleName;
    /**
     * 规则表达式
     */
    private RuleExp ruleExp;

    /**
     * 告警级别 AlarmLevelEnum
     */
    private String alarmLevel;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    private String userId;
    private String userName;

    private RuleResourceInfo resourceInfo;

    private int coolTime;

    private String ruleType;

    // 指标类型 阈值、事件
    private String indicatorType;

    /**
     * get
     *
     * @return IndicatorType
     */
    public String getIndicatorType() {
        return indicatorType;
    }

    /**
     * set
     *
     * @param indicatorType indicatorType
     */
    public void setIndicatorType(String indicatorType) {
        this.indicatorType = indicatorType;
    }

    /**
     * get
     *
     * @return RuleType
     */
    public String getRuleType() {
        return ruleType;
    }

    /**
     * set
     *
     * @param ruleType ruleType
     */
    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    /**
     * get
     *
     * @return CoolTime
     */
    public int getCoolTime() {
        return coolTime;
    }

    /**
     * set
     *
     * @param coolTime coolTime
     */
    public void setCoolTime(int coolTime) {
        this.coolTime = coolTime;
    }

    /**
     * get
     *
     * @return ResourceInfo
     */
    public RuleResourceInfo getResourceInfo() {
        return resourceInfo;
    }

    /**
     * set
     *
     * @param resourceInfo resourceInfo
     */
    public void setResourceInfo(RuleResourceInfo resourceInfo) {
        this.resourceInfo = resourceInfo;
    }

    /**
     * get
     *
     * @return Id
     */
    public String getId() {
        return id;
    }

    /**
     * set
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * get
     *
     * @return RuleName
     */
    public String getRuleName() {
        return ruleName;
    }

    /**
     * set
     *
     * @param ruleName ruleName
     */
    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    /**
     * get
     *
     * @return RuleExp
     */
    public RuleExp getRuleExp() {
        return ruleExp;
    }

    /**
     * set
     *
     * @param ruleExp ruleExp
     */
    public void setRuleExp(RuleExp ruleExp) {
        this.ruleExp = ruleExp;
    }


    /**
     * get
     *
     * @return AlarmLevel
     */
    public String getAlarmLevel() {
        return alarmLevel;
    }

    /**
     * set
     *
     * @param alarmLevel alarmLevel
     */
    public void setAlarmLevel(String alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    /**
     * get
     *
     * @return CreateTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * set
     *
     * @param createTime createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * get
     *
     * @return UpdateTime
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * set
     *
     * @param updateTime updateTime
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * get
     *
     * @return UserId
     */
    public String getUserId() {
        return userId;
    }

    /**
     * set
     *
     * @param userId userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * get
     *
     * @return UserName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * set
     *
     * @param userName userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }


}
